package com.example.mybatisplusdemo;

import java.io.*;
import java.text.DecimalFormat;
import java.util.*;

public class Main {
    public static void main(String args[]) {
        Scanner cin = new Scanner(System.in);
        int n = cin.nextInt();
        for (int i = 0; i < n; i++) {
            String a = cin.next();
            int b = cin.nextInt();
            int c = cin.nextInt();
            double d = cin.nextDouble();
            System.out.print(a + " ");
            System.out.print(b + " ");
            System.out.print(c + " ");
            DecimalFormat df=new DecimalFormat("0.00");
            System.out.println(df.format(d));
        }
    }
}

